import java.util.Scanner;

public class seconds
{
  public static void main (String[] args)
  {
    int hour,minute,Second;
    final int second = 1;
   
    Scanner scan = new Scanner (System.in);

    System.out.println ("Enter the number of hour: ");
    hour = scan.nextInt( );

    System.out.println ("Enter the number of minute: ");
    minute = scan.nextInt( );

    Second = (3600 * hour) + (60 * minute);
    
    System.out.println ("Time: " + Second);
  }
}
